﻿using System;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using jSLCore.Client.Presentation.Common;

namespace jSLCore.Client.Presentation.Controls
{
    public class jSLCloseDialogButton : Button
    {
        public jSLCloseDialogButton()
        {
            this.DefaultStyleKey = typeof(jSLCloseDialogButton);
            var image = new Image
                            {
                                Source = new BitmapImage(
                                    SLWPFSelector.CompileResourceString(@"Resources/ExitButton.png")
                                    )
                                    ,Stretch = Stretch.Fill
                            };
            Content = image;
        }
    }
}
